﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using YY.DataLinq;

namespace YY.WCFLib
{
    #region 登录返回结果
    /// <summary>
    /// 登录返回结果
    /// </summary>
    public class LoginResult
    {
        /// <summary>
        /// 用户实体
        /// </summary>
        public TB_User User { get; set; }
        /// <summary>
        /// 登录返回错误消息
        /// </summary>
        public string ErrorMsg { get; set; }
    }
    #endregion

    #region 带消息处理的布尔值返回结果
    /// <summary>
    /// 带消息处理的布尔值返回结果
    /// </summary>
    public class MsgBoolean
    {        
        /// <summary>
        /// 处理是否成功
        /// </summary>
        public bool Ok { get; set; }
        /// <summary>
        /// 异常消息
        /// </summary>
        public string Msg { get; set; }
    }
    #endregion

    #region 工作单
    /// <summary>
    /// 查询工作单类
    /// </summary>
    public class QOrder
    {
        public int OrderId { get; set; }
        public string OrderCode { get; set; }
        public string CCode { get; set; }
        public string ClientName { get; set; }
        public bool? IsOffer { get; set; }
        public bool? IsCheck { get; set; }
        public bool? IsPass { get; set; }
        public bool? IsNotice { get; set; }
        public string OrderStatus { get; set; }
        public string CustomsStatus { get; set; }
        public DateTime? ApplyDate { get; set; }
        public int Bizman { get; set; }
        public string BizmanName { get; set; }
        public int Agent { get; set; }
        public string AgentName { get; set; }
        public bool DeleteFlag { get; set; }
        public DateTime? PassTime { get; set; }
        public int StartPort { get; set; }
        public string StartPortName { get; set; }
        //public string CheckOffCode { get; set; }
        //public string CaseCode { get; set; }
    }
    #endregion

    #region 工作流
    public class QWorkflow
    {
        public int Id { get; set; }
        public int OrderId { get; set; }
        public string FlowStatus { get; set; }
        public string Operator { get; set; }
        public string Comment { get; set; }
        public DateTime? OPTime { get; set; }
        public string NextOperator { get; set; }
        public string HandleText { get; set; }
    }
    #endregion

    #region 费用
    public class QFee
    {
        public int  Id { get; set; }
        public int OrderId { get; set; }
        public string OrderCode { get; set; }
        public string OrderStatus { get; set; }        
        public int BizMan { get; set; }
        public string FeeType { get; set; }
        public short FeeTypeId { get; set; }
        public bool IsVerify { get; set; }
        public int Item { get; set; }
        public decimal Amount { get; set; }
        public int? Unit { get; set; }
        public string FeeCode { get; set; }
        public int Operator { get; set; }
        public DateTime OPTime { get; set; }
        public string OperatorName { get; set; }
        public string BizName { get; set; }
        public string ItemName { get; set; }
        public string UnitName { get; set; }
    }

    public class XFee :TB_Fee
    {
        public string ItemName { get; set; }
        public string UnitName { get; set; }
        public string TargetName { get; set; }
    }
    #endregion

    #region 货物
    public class XCargo :TB_Cargo
    {
        public string PackageTypeName { get; set; }
    }
    #endregion
}
